package com.masu.knows.portal.mapper;

import com.masu.knows.portal.model.Question;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 沈传尚
 * @since 2021-12-07
 */
@Repository
public interface QuestionMapper extends BaseMapper<Question> {

    List<Question> findAllTeachersQuestion(Integer useId);


    /**
     * 修改问题的状态
     */
    int updateQuStatus(@Param("status")Integer status, @Param("questionId")Integer questionId);

}
